<div class="modal-header">
    <h4 class="modal-title">企业信息</h4>
</div>
<div class="modal-body">
    <div class="container-fluid form-horizontal ">

<div class="col-xs-12 " >
		<div class="panel-body">
			<div class="container-fluid">
				
				<div class="col-xs-12 col-md-12" >
					
                    <div class="form-group">
						<label class="col-xs-3 control-label">广告名称</label>
						<div class="col-xs-7">
							<input type="text" class="form-control" placeholder="请输入企业名称"
							ng-model="info.title"
							>
						</div>
					</div>

                    <div class="form-group">
					    <label for="inputDate" class="col-sm-3 control-label">头图</label>
                        <div class="col-md-7">
                            <img ng-src="{{info.top_img}}" width="100%" height="200" ng-model="info.top_img">
                                <input type="file" nv-file-select uploader="uploader1" / ng-hide="hide===true" ><br/>
                                <ul class="list-group">
                                <li class="list-group-item" ng-repeat="item in uploader1.queue">
                                    文件名: <span ng-bind="item.file.name"></span>
                                    <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
                                    <div class="progress mt10">
                                    <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader1.progress + '%' }"></div>
                                    </div>
                                </li>
                                </ul>
                        </div>
					 </div>	

                     <div class="form-group">
					    <label for="inputDate" class="col-sm-3 control-label">body图</label>
                        <div class="col-md-7">
                            <img ng-src="{{info.body_img}}" width="100%" height="200" ng-model="info.body_img">
                                <input type="file" nv-file-select uploader="uploader" / ng-hide="hide===true" ><br/>
                                <ul class="list-group">
                                <li class="list-group-item" ng-repeat="item in uploader.queue">
                                    文件名: <span ng-bind="item.file.name"></span>
                                    <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
                                    <div class="progress mt10">
                                    <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader.progress + '%' }"></div>
                                    </div>
                                </li>
                                </ul>
                        </div>
                     </div>	
                     
                     <div class="form-group">
                        <label class="col-sm-3 col-xs-12 control-label">广告开启时间</label>
                        <div class="col-xs-7">
                        <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                            <input class="form-control"/>
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div>
                        </div>                        
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 col-xs-12 control-label">广告结束时间</label>
                        <div class="col-xs-7">
                        <div class="input-group" datetimepicker ng-model="vm1.date" options="vm1.options">
                            <input class="form-control"/>
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div>
                        </div>                        
                    </div>

                    <div class="form-group">
					              <label for="inputDate" class="col-sm-3 control-label">图文类别</label>
                        <div class="col-md-7">
                            <select class="form-control" ng-model="info.ad_type" ng-change="selection(info.ad_type)">
                                <option value="">请选择</option>
                                <option value="1">自定义图文</option>
                                <option value="2">自定义图文+公众号图文</option>
                                <option value="3">自定义图文+公众号</option>
                                <option value="4">自定义图文+公众号图文+公众号</option>
                            </select>
                        </div>
                    </div>	

                    <div class="form-group">
                        <label class="col-xs-3 control-label">活动补贴</label>
                        <div class="col-xs-7">
                            <ui-select ng-model="subsidySearchform.selected" theme="bootstrap" ng-disabled="item != undefined">
                            <ui-select-match placeholder="请选择活动补贴">{{$select.selected.subsidy_name}}</ui-select-match>
                            <ui-select-choices group-by="" repeat="item in subsidyarr | filter: $select.search">
                              <span ng-bind-html="item.subsidy_name | highlight: $select.search"></span>
                              <!--<small ng-bind-html="item.code | highlight: $select.search"></small>-->
                            </ui-select-choices>
                            </ui-select>
                        </div>    
                    </div>

                    <div class="form-group">
                      <label class="col-xs-3 control-label">总共观看人数</label>
                      <div class="col-xs-7">
                        <input type="text" class="form-control" placeholder="总共观看人数"
                        ng-model="info.total_num"
                        >
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-xs-3 control-label">已经观看人数</label>
                      <div class="col-xs-7">
                        <input type="text" class="form-control" placeholder="已经观看人数"
                        ng-model="info.now_num"
                        >
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-xs-3 control-label">排序</label>
                      <div class="col-xs-7">
                        <input type="text" class="form-control" placeholder="排序"
                        ng-model="info.asort"
                        >
                      </div>
                    </div>


				</div>


			</div>
		</div>
	</div>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>


